package com.it.security.service.impl;

import com.it.security.dao.RoleDao;
import com.it.security.pojo.Role;
import com.it.security.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleDao roleDao;

    @Override
    public Role getRoleById(Integer id) {
        return roleDao.getRoleById(id);
    }

    @Override
    public List<Role> getRoleByUserId(Integer id) {
        return roleDao.getRoleByUserId(id);
    }



}
